﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZEntity.WMain.Entity
{
    /// <summary>
    /// 表的列信息描述实体
    /// </summary>
    public class TableColumnInfo
    {
        private string tableName;
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName {
            get { return tableName; }
            set { tableName = value; }
        }

        private string columnName;
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName {
            get { return columnName; }
            set { columnName = value; }
        }

        private int length;
        /// <summary>
        /// 长度
        /// </summary>
        public int Length {
            get { return length; }
            set { length = value; }
        }

        private string typeName;
        /// <summary>
        /// 类型名
        /// </summary>
        public string TypeName {
            get { return typeName; }
            set { typeName = value; }
        }

        private bool nullable;
        /// <summary>
        /// 是否可空
        /// </summary>
        public bool Nullable {
            get { return nullable; }
            set { nullable = value; }
        }

        private bool isPrimaryKey;
        /// <summary>
        /// 是否主键
        /// </summary>
        public bool IsPrimaryKey {
            get { return isPrimaryKey; }
            set { isPrimaryKey = value; }
        }

        private string description;
        /// <summary>
        /// 字段说明
        /// </summary>
        public string Description {
            get { return description; }
            set { description = value; }
        }

        private string tableDescription;
        /// <summary>
        /// 表说明
        /// </summary>
        public string TableDescription {
            get { return tableDescription; }
            set { tableDescription = value; }
        }
    }
}
